]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Check if Message is expanded
authorSymphonySimper <164710-SymphonySimper@users.noreply.gitlab.gnome.org>
Sat, 22 Nov 2025 13:01:05 +0000 (18:31 +0530)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:43:00 +0000 (14:43 +0100)
Check if Message is expanded in expand method, to prevent rerunning the
expand animation when it's already expanded

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3978>
(cherry picked from commit 2f08a95b1efdef83a48e3d261937469070967d0a)

js/ui/messageList.js

index dfcc69d81a5522a0211c06d6127bd46727bb6d05..169f8900df4addd576e5e6e10c3458ad7cd23143 100644 (file)
@@ -619,6 +619,9 @@ export const Message = GObject.registerClass({
     }
 
     expand(animate) {
+        if (this.expanded)
+            return;
+
         this.expanded = true;
 
         this._actionBin.visible = !!this._actionBin.child;